.Dd Sept 25, 2015
.Dt AVAS 1
.Os
.Sh NAME
.Nm avas
.Nd An excessively simple AVR® assembler.
.Sh SYNOPSIS
.Nm
.Op Fl o Ar output
.Sh DESCRIPTION
.Nm
is an excessively simple, and fairly unoptimized, AVR® assembler.
.Pp
The arguments are as follows:
.Bl -tag -width Ds
.It Fl o Ar output
Write to the file
.Ar output ,
or to "a.out" if no output is specified.
.El
.Sh EXTENSIONS
.Bl -tag -width Ds
.It Literals
When not part of an instruction, any number encountered is treated
as a literal octet, unless the 'WORDS' mnemonic was seen before another
mnemonic, in that case the number is treated as a 16-bit little-endian
word.  When a '"' is encountered value between it and the terminating
'"' is treated as a literal octet.  Two adjacent '"'s within a string
are treated as a literal '"'.
.It WORD
Treat the following number as a 16-bit little-endian value.
.It WORDS
Treat any numbers preceding another mnemonic as 16-bit little-endian
values, or stop doing so.
.It END
Stops the assembly of the file.
.El
.Sh EXIT STATUS
.Ex -std
.Sh CAVEATS
.Nm
does not expect commas, register prefixed with 'r',
and does not adjust any of the arguments.  Some mnemonics
have been split into multiple mnemonics.
.Sh ATTRIBUTION
AVR® are registered trademarks or trademarks of Atmel Corporation or its subsidiaries, in the US and/or other countries.

